package com.dingpeikeji.quickdeer.core.modules.orders.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 实名认证Entity
 * @author gaozj
 * @version 2016-11-23
 */
public class TOrdersPerson extends DataEntity<TOrdersPerson> {
	
	private static final long serialVersionUID = 1L;
	private Integer insureid;		// insureid
	private Integer orderid;		// 关联到订单表
	private String insurecover;		// 取自保险平台
	private Double premium;		// 保费
	private String passenger;		// 乘客、被保险人姓名
	private String certitype;		// 证件类型，身份证等等
	private String certino;		// 证件号
	private String contel;		// 联系电话
	
	public TOrdersPerson() {
		super();
	}

	public TOrdersPerson(String id){
		super(id);
	}

	@NotNull(message="insureid不能为空")
	public Integer getInsureid() {
		return insureid;
	}

	public void setInsureid(Integer insureid) {
		this.insureid = insureid;
	}
	
	@NotNull(message="关联到订单表不能为空")
	public Integer getOrderid() {
		return orderid;
	}

	public void setOrderid(Integer orderid) {
		this.orderid = orderid;
	}
	
	@Length(min=0, max=10, message="取自保险平台长度必须介于 0 和 10 之间")
	public String getInsurecover() {
		return insurecover;
	}

	public void setInsurecover(String insurecover) {
		this.insurecover = insurecover;
	}
	
	public Double getPremium() {
		return premium;
	}

	public void setPremium(Double premium) {
		this.premium = premium;
	}
	
	@Length(min=0, max=64, message="乘客、被保险人姓名长度必须介于 0 和 64 之间")
	public String getPassenger() {
		return passenger;
	}

	public void setPassenger(String passenger) {
		this.passenger = passenger;
	}
	
	@Length(min=0, max=2, message="证件类型，身份证等等长度必须介于 0 和 2 之间")
	public String getCertitype() {
		return certitype;
	}

	public void setCertitype(String certitype) {
		this.certitype = certitype;
	}
	
	@Length(min=0, max=64, message="证件号长度必须介于 0 和 64 之间")
	public String getCertino() {
		return certino;
	}

	public void setCertino(String certino) {
		this.certino = certino;
	}
	
	@Length(min=0, max=20, message="联系电话长度必须介于 0 和 20 之间")
	public String getContel() {
		return contel;
	}

	public void setContel(String contel) {
		this.contel = contel;
	}
	
}